//*****************************************************************************
//
// ssi_hw.h - Board connection information for the SDCard reader.
//
// Copyright (c) 2008-2012 Texas Instruments Incorporated.  All rights reserved.
// Software License Agreement
//
// Texas Instruments (TI) is supplying this software for use solely and
// exclusively on TI's microcontroller products. The software is owned by
// TI and/or its suppliers, and is protected under applicable copyright
// laws. You may not combine this software with "viral" open-source
// software in order to form a larger program.
//
// THIS SOFTWARE IS PROVIDED "AS IS" AND WITH ALL FAULTS.
// NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT
// NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. TI SHALL NOT, UNDER ANY
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
// This is part of revision 9453 of the DK-LM3S9D96 Firmware Package.
//
//*****************************************************************************

#ifndef __SSI_HW_H__
#define __SSI_HW_H__

//*****************************************************************************
//
// Peripheral definitions for the dk-lm4f120xl board
//
//*****************************************************************************

//*****************************************************************************
//
// Serial flash SSI port
//
//*****************************************************************************
#define DAC_SSI_PERIPH       SYSCTL_PERIPH_SSI2
#define DAC_SSI_BASE         SSI2_BASE

//*****************************************************************************
//
// GPIO for serial flash pins
//
//*****************************************************************************
#define DAC_SSI_GPIO_PERIPH SYSCTL_PERIPH_GPIOB
#define DAC_SSI_GPIO_BASE   GPIO_PORTB_BASE
#define DAC_SSI_TX          GPIO_PIN_7
//#define DAC_SSI_RX          GPIO_PIN_3 //TODO: verify these things work, does SSI need receive? does it need pin?
#define DAC_SSI_CLK         GPIO_PIN_4
#define DAC_SSI_CS			GPIO_PIN_5
#define DAC_SSI_PINS        (DAC_SSI_TX | DAC_SSI_CLK /*| DAC_SSI_CS*/)

//*****************************************************************************
//
// GPIO for the serial flash chip select.  This device shares the SSI bus.
//
//*****************************************************************************
/*
#define DAC_CS_PERIPH   SYSCTL_PERIPH_GPIOB
#define DAC_CS_BASE     GPIO_PORTB_BASE
#define DAC_CS_PIN      GPIO_PIN_5
*/
#endif // __SSI_HW_H__
